﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LiftBill;

namespace LIftBillService
{
    public class FoodService : IFoodService
    {

        public Food[] GetAllFood()
        {
            List<Food> foodList = new List<Food>();
            foodList.Add(new Food() { ID = Guid.NewGuid().ToString(), FoodName = "青菜" });
            foodList.Add(new Food() { ID = Guid.NewGuid().ToString(), FoodName = "红苕" });
            foodList.Add(new Food() { ID = Guid.NewGuid().ToString(), FoodName = "白菜" });
            foodList.Add(new Food() { ID = Guid.NewGuid().ToString(), FoodName = "猪肉" });
            foodList.Add(new Food() { ID = Guid.NewGuid().ToString(), FoodName = "鸡肉" });
            return foodList.ToArray();
        }

        public Food GetFood(string ID)
        {
            throw new NotImplementedException();
        }

        public void SaveFood(LiftBill.Food food)
        {
            throw new NotImplementedException();
        }


        public FoodBase[] GetAllFoodBaseList()
        {
            List<FoodBase> foodList = new List<FoodBase>();
            foodList.Add(new FoodBase() { ID = Guid.NewGuid().ToString(), Name = "青菜",Type="蔬菜" });
            foodList.Add(new FoodBase() { ID = Guid.NewGuid().ToString(), Name = "红苕", Type = "蔬菜" });
            foodList.Add(new FoodBase() { ID = Guid.NewGuid().ToString(), Name = "白菜", Type = "蔬菜" });
            foodList.Add(new FoodBase() { ID = Guid.NewGuid().ToString(), Name = "猪肉", Type = "肉" });
            foodList.Add(new FoodBase() { ID = Guid.NewGuid().ToString(), Name = "鸡肉", Type = "肉" });
            return foodList.ToArray();
        }
    }
}
